package cn.wolfcode.trip.base.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
@Setter@Getter@AllArgsConstructor@NoArgsConstructor
public class Likes extends BaseDomain{
    private Long contentId;//点赞文章id

    private Long userId;//点赞用户id

    private boolean state=false;//点赞状态,默认未点赞

    private Date time;//点赞时间

    private Travel travel;

    private User user;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date createtime;
}